import Vue from 'vue'
import VueRoute from 'vue-router'
import routes from '@/configs/router.js'
import emementui from 'element-ui'
import axios from 'axios'
import cpt from '@/configs/component.js'
import 'element-ui/lib/theme-default/index.css'
import '@/assets/css/base.css'
// require('./assets/css/base.scss')
Vue.config.productionTip = false

Vue.use(VueRoute)
Vue.use(emementui)
Vue.use(cpt)
// axios.defaults.baseURL = 'http://bikeapp.test.cmmkj.top/v1/';
// axios.defaults.headers.common['Authorization'] = AUTH_TOKEN;
// axios.defaults.headers['Content-Type'] = 'application/json';
// axios.defaults.headers['Accept'] = 'application/json';
Vue.prototype.$api = axios

let router = new VueRoute({routes})
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router
})
// router.beforeEach((to, from, next) => {
//   // ...
//   form.name === "第一页" && to.
//   console.log(to, from)
//   next()
// })